const dict = {
    // input: 'input',
    switch: 'switch',
    area: 'area',

    phone: 'phone',
    textarea: 'textarea',
    number: 'number',

    selectGrade: 'select-grade',
    select: 'select',
    radio: 'radio',
    checkbox: 'checkbox',

    uploadImg: 'upload:img',
    uploadImgs: 'upload:imgs',

    uploadFiles: 'upload:files',

    wangeditor: 'wangeditor',


    // 其它
    submit: 'submit',
    cancel: 'cancel',

    preview: 'preview',
    create: 'create',
    edit: 'edit',
}

export default dict

// 方便配置的填写，内部转换
export const pureComponentNameDict = {
    [dict.switch]: 'NameSwitch',
    [dict.area]: 'Area',
    [dict.number]: 'Number',

    [dict.phone]: 'Phone',
    [dict.textarea]: 'Textarea',
    [dict.wangeditor]: 'WangEditor',

    [dict.select]: 'AsyncSelect',
    [dict.radio]: 'AsyncRadio',
    [dict.checkbox]: 'AsyncCheckbox',
    [dict.selectGrade]: 'AsyncSelectGrade',


    [dict.uploadImg]: 'SingleUploadImg',
    [dict.uploadImgs]: 'MultipleUploadImgs',
}
